package com.xuelang.pipeline.app.pipeline.converter;

import com.xuelang.pipeline.client.pipeline.dto.MyPipelineQuery;
import com.xuelang.pipeline.client.pipeline.dto.PipelineQuery;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 流水线DTO与流水线实体转换器
 *
 * @author xiwen.zxg
 * @since 2024/5/15
 */
@Mapper
public interface MyPipelineQueryToPipelineQueryConverter {
    MyPipelineQueryToPipelineQueryConverter INSTANCE = Mappers.getMapper(MyPipelineQueryToPipelineQueryConverter.class);

    /**
     * Pipeline转化为PipelineDTO
     * @param pipeline
     * @return
     */
    PipelineQuery toPipelineQuery(MyPipelineQuery pipeline);

}
